#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
#include<stdbool.h>
//前置声明
struct BinaryTreeNode;

typedef struct BinaryTreeNode* DataType;

//typedef int DataType;

typedef struct QueueNode
{
	struct QueueNode* next;
	DataType data;
}QueueNode;

typedef struct Queue
{
	QueueNode* head;
	QueueNode* tail;
}Queue;

typedef struct {
	Queue q1;
	Queue q2;
} MyStack;


void QueueInit(Queue* pq);

void QueuePush(Queue* pq, DataType x);

void QueuePop(Queue* pq);

void QueueDestroy(Queue* pq);

int QueueSize(Queue* pq);

DataType QueueFront(Queue* pq);